<template>
    <div class="search">
        <div>开始时间：{{ formatTime(startDate) }}</div>
        <div>结束时间：{{ formatTime(endDate) }}</div>
        <div>当前城市：{{ currentCity.cityName }}</div>
    </div>
</template>

<script setup>
import useMainStore from "@/store/modules/main.js"
import { storeToRefs } from "pinia";
import formatTime from "@/utils/formatTime.js"
import useCityStore from "@/store/modules/city.js"

const mainStore = useMainStore()
const { startDate,endDate } = storeToRefs(mainStore)

const cityStore = useCityStore()
const { currentCity } = storeToRefs(cityStore)
</script>


<style lang='less' scoped>

</style>